package com.ht.medicaltreatment.view

import android.content.Context
import com.ht.medicaltreatment.R
import kotlinx.android.synthetic.main.dialog_tips_layout.btnNegaive
import kotlinx.android.synthetic.main.dialog_tips_layout.btnPositive
import kotlinx.android.synthetic.main.dialog_tips_layout.tvContent

class TipsDialog(context:Context) : BaseDialog(context) {

    override fun getLayoutRes() = R.layout.dialog_tips_layout

    init {
        btnNegaive.setOnClickListener {
            dismiss()
        }

        btnPositive.setOnClickListener {

        }
    }

    fun show(text:String){
        tvContent.text = text
        super.show()
    }
}